package com.example.artemis.factory;

import com.example.artemis.config.AbstractProducerConfig;
import com.example.artemis.impl.QueueMessageProducer;
import com.example.artemis.interfaces.MessageProducer;
import com.example.artemis.interfaces.MessageProducerFactory;

/**
 * 队列消息生产者工厂实现类
 * 负责创建QueueMessageProducer实例
 */
public class QueueMessageProducerFactory implements MessageProducerFactory {

    @Override
    public MessageProducer createProducer(AbstractProducerConfig config) {
        return new QueueMessageProducer(config);
    }
}